//
//  SeasonCell.swift
//  GhostWorld
//
//  Created by Kam on 2018/4/6.
//  Copyright © 2018 LKGood. All rights reserved.
//

import UIKit
import AlamofireImage

class SeasonCell: UICollectionViewCell {
  
  // MARK: - IBOutlets
  
  @IBOutlet private weak var nameLabel: UILabel!
  @IBOutlet private weak var coverImageView: CoverImageView!
  
  // MARK: - Private vars
  
  
  
  // MARK: - Private methods
  
  
  
  // MARK: - Public vars
  
  
  
  // MARK: - Lifecycle
  
  override func awakeFromNib() {
    super.awakeFromNib()
    backgroundColor = .clear
  }
  
  // MARK: - IBActions
  
  
  
  // MARK: - Public methods
  
  func prepare(group: Group) {
    nameLabel.text = group.name
    if let url = group.cover.getURL(size: .thumb) {
      coverImageView.af_setImage(withURL: url)
    }
  }
}
